package cn.lanqiao.system.service;
import cn.lanqiao.common.entity.User;
import com.github.pagehelper.PageInfo;
import java.util.List;

public interface UserService {
    Integer UserRegister(User user);

    int deleteByPrimaryKey(Integer userid);
    int batchDeleteUser(Integer[] ids);//批量删除用户

    Integer updateUserInfo(User user);

    List<User> findUserByName(String username);
    PageInfo<User> getPage(int pageNo, int pageSize);
    PageInfo<User> getTypePage(int pageNo, int pageSize,Integer typeId);
    int save(User user);
    //验证码登录
    User login(String username,String password);
    //根据ID查找用户
    User findById(Integer id);

    User getUserById(Integer id);

    //修改个人信息
    Integer updateUserById(User user);

    //用户注册
    Integer insertSelective(User record);
}